package com.neusoft.nepg.service;

import com.neusoft.common.domain.AQIlevel;
import com.neusoft.common.domain.City;
import com.neusoft.common.domain.Province;
import com.neusoft.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "service-nepm",url = "http://localhost:7000", configuration = FeignConfig.class)
public interface NepmServiceClient {
    @GetMapping("/service-nepm/administrator/find")
    Province find(@RequestParam("id") int id);

    @GetMapping("/service-nepm/administrator/find-city")
    City findCity(@RequestParam("id") int id);
    @GetMapping("/service-nepm/administrator/get-tip")
    String getTip(@RequestParam("id") int id);
    @GetMapping("/service-nepm/administrator/get-msg")
    String getMsg(@RequestParam("id") int id);
    @GetMapping("/service-nepm/administrator/SO2-test")
    List<AQIlevel> SO2Test(@RequestParam("SO2") float SO2);
    @GetMapping("/service-nepm/administrator/CO-test")
    List<AQIlevel> COTest(@RequestParam("CO") float CO);
    @GetMapping("/service-nepm/administrator/PM-test")
    List<AQIlevel> PMTest(@RequestParam("PM") float PM);
}
